package com.bw.lib_database.database.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters

/**
 * 用户信息表实例
 */

@Entity(tableName = "user_info")
@TypeConverters(CustomTypeConverters::class) //自定义字段转换器

data class UserInfoEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    @ColumnInfo("user_id")
    val userId: Int = 0,
    @ColumnInfo("account_id")
    val accountId: Int = 0,
    @ColumnInfo("c_time")
    val cTime: String = "",
    val headImg: String = "",
    val isAuthor: Int = 0,
    val nick: String = "",
    val password: String = "",
    @ColumnInfo("role_id")
    val roleId: Int = 0,
    @ColumnInfo("name")
    val userName: String = ""
)